/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.security;

import boundary.UserManager;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author miglie
 */
@Named(value = "userbean2")
@RequestScoped
public class UserBean2 implements Serializable{

    @EJB
    UserManager um;
    
    public UserBean2() {
    }
    
    public String getName() {
        return um.getLoggedUser().getName();
    }
    
}
